﻿
@{
    Layout = "";
}

<h3>
    <!-- START Language list-->
    @*<div class="pull-right">
        <div dropdown="" is-open="language.listIsOpen" class="btn-group">
            <button type="button" dropdown-toggle="" class="btn btn-default">
                {{language.selected}}
                <span class="caret"></span>
            </button>
            <ul role="menu" class="dropdown-menu dropdown-menu-right animated fadeInUpShort">
                <li ng-repeat="(localeId, langName) in language.available">
                    <a ng-click="language.set(localeId, $event)" href="#">{{langName}}</a>
                </li>
            </ul>
        </div>
    </div>*@
    <!-- END Language list    -->
    工作台
    <!--<small>{{ 'dashboard.WELCOME' | translate:{ appName: app.name } }} !</small>-->

</h3>
<!-- START widgets box-->
<div ng-controller="SpecialTopicEditController">
    <div class="row">
        <div class="col-lg-3 col-sm-6">
            <!-- START widget-->
            <div class="panel widget bg-primary">
                <div class="row row-table">
                    <div class="col-xs-4 text-center bg-primary-dark pv-lg">
                        <em class="icon-cloud-upload fa-3x"></em>
                    </div>
                    <div class="col-xs-8 pv-lg">
                        <div class="h2 mt0">￥{{SaleMoney}}</div>
                        <div class="text-uppercase">今日累计销售额</div>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-lg-3 col-sm-6">
            <!-- START widget-->
            <div class="panel widget bg-primary">
                <div class="row row-table">
                    <div class="col-xs-4 text-center bg-primary-dark pv-lg">
                        <em class="icon-cloud-upload fa-3x"></em>
                    </div>
                    <div class="col-xs-8 pv-lg">
                        <div class="h2 mt0">{{AddMember}}</div>
                        <div class="text-uppercase">今日新增会员</div>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-lg-8">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <div class="panel-title">您需要处理</div>
                </div>
                <!-- START list group-->
                <scrollable height="400" class="list-group">
                    <!-- START list group item-->
                    <a href="#" class="list-group-item">
                        <div class="media-box">
                            <div class="pull-left">
                                @*<img src="app/img/user/02.jpg" alt="Image" class="media-box-object img-circle thumb32" />*@
                            </div>
                            <div class="media-box-body clearfix">
                                @*<small class="pull-right">2h</small>*@
                                <strong class="media-box-heading text-primary">
                                    <span class="circle circle-danger circle-lg text-left"></span>待发货的订单（{{OrderSendNum}}）
                                </strong>
                                @*<p class="mb-sm">
                                        <small>Cras sit amet nibh libero, in gravida nulla. Nulla...</small>
                                    </p>*@
                            </div>
                        </div>
                    </a>
                    <a href="#" class="list-group-item">
                        <div class="media-box">
                            <div class="pull-left">
                                @*<img src="app/img/user/02.jpg" alt="Image" class="media-box-object img-circle thumb32" />*@
                            </div>
                            <div class="media-box-body clearfix">
                                @*<small class="pull-right">2h</small>*@
                                <strong class="media-box-heading text-primary">
                                    <span class="circle circle-danger circle-lg text-left"></span>待上架的商品（{{ProductLower}}）
                                </strong>
                                @*<p class="mb-sm">
                        <small>Cras sit amet nibh libero, in gravida nulla. Nulla...</small>
                    </p>*@
                            </div>
                        </div>
                    </a>
                    <a href="#" class="list-group-item">
                        <div class="media-box">
                            <div class="pull-left">
                                @*<img src="app/img/user/02.jpg" alt="Image" class="media-box-object img-circle thumb32" />*@
                            </div>
                            <div class="media-box-body clearfix">
                                @*<small class="pull-right">2h</small>*@
                                <strong class="media-box-heading text-primary">
                                    <span class="circle circle-success circle-lg text-left"></span>销售中的商品（{{ProductPending}}）
                                </strong>
                                @*<p class="mb-sm">
                        <small>Cras sit amet nibh libero, in gravida nulla. Nulla...</small>
                    </p>*@
                            </div>
                        </div>
                    </a>
                    <a href="#" class="list-group-item">
                        <div class="media-box">
                            <div class="pull-left">
                                @*<img src="app/img/user/02.jpg" alt="Image" class="media-box-object img-circle thumb32" />*@
                            </div>
                            <div class="media-box-body clearfix">
                                @*<small class="pull-right">2h</small>*@
                                <strong class="media-box-heading text-primary">
                                    <span class="circle circle-danger circle-lg text-left"></span>库存不足的商品（{{StocNotEnoughk}}）
                                </strong>
                                @*<p class="mb-sm">
                        <small>Cras sit amet nibh libero, in gravida nulla. Nulla...</small>
                    </p>*@
                            </div>
                        </div>
                    </a>
                    <a href="#" class="list-group-item">
                        <div class="media-box">
                            <div class="pull-left">
                                @*<img src="app/img/user/02.jpg" alt="Image" class="media-box-object img-circle thumb32" />*@
                            </div>
                            <div class="media-box-body clearfix">
                                @*<small class="pull-right">2h</small>*@
                                <strong class="media-box-heading text-primary">
                                    <span class="circle circle-danger circle-lg text-left"></span>库存售罄的商品（{{StockEmpty}}）
                                </strong>
                                @*<p class="mb-sm">
                        <small>Cras sit amet nibh libero, in gravida nulla. Nulla...</small>
                    </p>*@
                            </div>
                        </div>
                    </a>
                    <a href="#" class="list-group-item">
                        <div class="media-box">
                            <div class="pull-left">
                                @*<img src="app/img/user/02.jpg" alt="Image" class="media-box-object img-circle thumb32" />*@
                            </div>
                            <div class="media-box-body clearfix">
                                @*<small class="pull-right">2h</small>*@
                                <strong class="media-box-heading text-primary">
                                    <span class="circle circle-danger circle-lg text-left"></span>待处理的退换货申请（{{ReturnGoodsCount}}）
                                </strong>
                                @*<p class="mb-sm">
                        <small>Cras sit amet nibh libero, in gravida nulla. Nulla...</small>
                    </p>*@
                            </div>
                        </div>
                    </a>
                    <a href="#" class="list-group-item">
                        <div class="media-box">
                            <div class="pull-left">
                                @*<img src="app/img/user/02.jpg" alt="Image" class="media-box-object img-circle thumb32" />*@
                            </div>
                            <div class="media-box-body clearfix">
                                @*<small class="pull-right">2h</small>*@
                                <strong class="media-box-heading text-primary">
                                    <span class="circle circle-danger circle-lg text-left"></span>处理中的退换货申请（{{ReingGoodsCount}}）
                                </strong>
                                @*<p class="mb-sm">
                        <small>Cras sit amet nibh libero, in gravida nulla. Nulla...</small>
                    </p>*@
                            </div>
                        </div>
                    </a>
                    <a href="#" class="list-group-item">
                        <div class="media-box">
                            <div class="pull-left">
                                @*<img src="app/img/user/02.jpg" alt="Image" class="media-box-object img-circle thumb32" />*@
                            </div>
                            <div class="media-box-body clearfix">
                                @*<small class="pull-right">2h</small>*@
                                <strong class="media-box-heading text-primary">
                                    <span class="circle circle-success circle-lg text-left"></span>待评价的订单（{{daipingjia}}）
                                </strong>
                                @*<p class="mb-sm">
                        <small>Cras sit amet nibh libero, in gravida nulla. Nulla...</small>
                    </p>*@
                            </div>
                        </div>
                    </a>
                    <a href="#" class="list-group-item">
                        <div class="media-box">
                            <div class="pull-left">
                                @*<img src="app/img/user/02.jpg" alt="Image" class="media-box-object img-circle thumb32" />*@
                            </div>
                            <div class="media-box-body clearfix">
                                @*<small class="pull-right">2h</small>*@
                                <strong class="media-box-heading text-primary">
                                    <span class="circle circle-success circle-lg text-left"></span>已评价的订单（{{yipingjia}}）
                                </strong>
                                @*<p class="mb-sm">
                        <small>Cras sit amet nibh libero, in gravida nulla. Nulla...</small>
                    </p>*@
                            </div>
                        </div>
                    </a>
                </scrollable>
                
                
                <!-- END list group-->

            </div>
        </div>
    </div>
</div>
<!-- END widgets box-->
<script type="text/javascript">
    App.controller('SpecialTopicEditController', [
        "$scope", "$state", "$http", "$stateParams", "Notify", '$rootScope',
        function ($scope, $state, $http, $stateParams, Notify, $rootScope) {
            'use strict';

            $scope.SaleMoney = 0;
            $scope.OrderSendNum = 0;
            $scope.ProductLower = 0;
            $scope.ProductPending = 0;
            $scope.AddMember = 0;
            $scope.StocNotEnoughk = 0;
            $scope.StockEmpty = 0;

            $scope.ReturnGoodsCount = 0;
            $scope.ReingGoodsCount = 0;

            $scope.daipingjia=0;

            $scope.yipingjia=0;

            $http.post("/Home/GetSaleMoney").then(function (response) {
                $scope.SaleMoney = response.data;

            });
            
            $http.post("/Home/GetShipmentPending").then(function (response) {
                $scope.OrderSendNum = response.data;

            });
            $http.post("/Home/GetStatisticsLower").then(function (response) {
                $scope.ProductLower = response.data;

            });
            $http.post("/Home/GetStatisticsUpper").then(function (response) {
                $scope.ProductPending = response.data;

            });
            $http.post("/Home/GetAddMember").then(function (response) {
                $scope.AddMember = response.data;

            });
            $http.post("/Home/GetStocNotEnoughk").then(function (response) {
                $scope.StocNotEnoughk = response.data;

            });

            $http.post("/Home/GetStockEmpty").then(function (response) {
                $scope.StockEmpty = response.data;

            });

            $http.post("/Home/GetReturnGoodsCount").then(function (response) {
                $scope.ReturnGoodsCount = response.data;

            });
            $http.post("/Home/GetReingGoodsCount").then(function (response) {
                $scope.ReingGoodsCount = response.data;

            }); 

            $http.post("/Home/Getdaipingjia").then(function (response) {
                $scope.daipingjia = response.data;

            });

            $http.post("/Home/Getyipingjia").then(function (response) {
                $scope.yipingjia = response.data;

            });
        }
    ]);
</script>